/*
 * 
 * 
 */
package com.zhouxujing.game;

import java.awt.Graphics;
import java.awt.Image;
/**
 * 
 * 
 *
 */
public class Evolution extends Animation{
	public static int count=0;//表示变身动画的页数
    private static Image[] imgs = new Image[13];
    static {
        for(int i=0;i<13;i++){
        	System.out.println("已把图片传给evolution的imgs数组");
            imgs[i] = GameUtil.getImage("images/evolution/a"+(i+1)+".gif");
            imgs[i].getWidth(null);
            imgs[i].getHeight(null);
        }
    }
     
    public void draw(Graphics g){
        if(count<13){//
            g.drawImage(imgs[count], (int)getX()-50, (int)getY()-50, null);//设置我方战机变身GIF的位置
            count++;
        }
    }    
}
